 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/plantilla_admin.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>{title} - {empresa}</title>
<!-- InstanceEndEditable -->

<link href="/admin/css/style.css" rel="stylesheet" type="text/css">
<link href="/admin/css/theme.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" -->
<script type="text/javascript" src="/admin/css/tab/tab.js"></script>
<link rel="stylesheet" type="text/css" href="/admin/css/tab/tab.css" />
<script type="text/javascript" src="/admin/js/fckeditor/fckeditor.js"></script>
<script type="text/javascript" src="/admin/js/jsrsClient.js"></script>
<script type="text/javascript" src="/admin/js/funciones_generales.js"></script>
<script type="text/javascript">
function pedir_subsecciones(valor){
var id_seccion = valor;
	jsrsExecute("../modulos/secciones/include/include.remotescripting.php", parsear_subsecciones, "obtenerSubsecciones",Array(id_seccion));
}

function parsear_subsecciones(retorno){
	document.getElementById("subsecciones").innerHTML=retorno;
}
</script>
<!-- InstanceEndEditable -->
</head>

<body>
<div id="header"><h1>Administration</h1>
<div class="a">You are logged in as <b>{usuario}</b></div>
</div>


<script type="text/javascript" src="/admin/js/JSCookMenu.js"></script>
<script type="text/javascript" src="/admin/js/theme.js"></script>
<div id="myMenuID"></div>
<script language="JavaScript"><!--  
  var myMenu = [ 
    [null, 'Admin', null, null, null,
	    ['<img src="/admin/images/home.png" />', 'Home', '/admin/index.php', null, null],
	    ['<img src="/admin/images/shop.png" />', 'Catalog', '/', null, null],
	    ['<img src="/admin/images/configuration.png" />', 'Configuración', null, null, null,
			['<img src="/admin/images/setting.png" />', 'Configuración', '/admin/modulos/configuracion/index.php', null, null],
		    ['<img src="/admin/images/users.png" />', 'Users', null, null, null,
		      ['<img src="/admin/images/user.png" />', 'User', '/admin/modulos/usuarios/index.php', null, null],
		      ['<img src="/admin/images/user_group.png" />', 'User Group', '/admin/index.php?controller=user_group', null, null]
		    ],
		    ['<img src="/admin/images/localisation.png" />', 'Localisación', null, null, null,
		      ['<img src="/admin/images/language.png" />', 'Idiomas', '/admin/modulos/idiomas/index.php', null, null],
		      ['<img src="/admin/images/currency.png" />', 'Currency', '/admin/index.php?controller=currency', null, null],
		      ['<img src="/admin/images/order_status.png" />', 'Order Status', '/admin/index.php?controller=order_status', null, null],
			  ['<img src="/admin/images/country.png" />', 'Country', '/admin/index.php?controller=country', null, null],
		      ['<img src="/admin/images/zone.png" />', 'Zone', '/admin/index.php?controller=zone', null, null],
		      ['<img src="/admin/images/geo_zone.png" />', 'Geo Zone', '/admin/index.php?controller=geo_zone', null, null],
		      ['<img src="/admin/images/tax_class.png" />', 'Tax Class', '/admin/index.php?controller=tax_class', null, null],
		      ['<img src="/admin/images/weight_class.png" />', 'Weight Class', '/admin/index.php?controller=weight_class', null, null]
		    ],
		    ['<img src="/admin/images/url_alias.png" />', 'URL Alias', '/admin/index.php?controller=url_alias', null, null],
			['<img src="/admin/images/backup.png" />', 'Backup / Restore', '/admin/index.php?controller=backup', null, null],
		    ['<img src="/admin/images/server_info.png" />', 'Server Info', '/admin/index.php?controller=server_info', null, null]
			],			
	    ['<img src="/admin/images/logout.png" />', 'Logout', '/admin/index.php?controller=logout', null, null]
	  ],
	_cmSplit,	
	  [null, 'Módulos', null, null, null, 
	  <!-- BEGIN block_modulos_menu -->
	  	['<img src="/admin/images/{imagen}" />', '{nombre}', '/admin/modulos/{path}/index.php?action={action}', null, null],
	  <!-- END block_modulos_menu --> 
    ],
	_cmSplit,  
	  [null, 'Extensions', null, null, null, 	  
	    ['<img src="/admin/images/module.png" />', 'Module', '/admin/index.php?controller=extension&type=module', null, null],
		['<img src="/admin/images/shipping.png" />', 'Shipping', '/admin/index.php?controller=extension&type=shipping', null, null],
	    ['<img src="/admin/images/payment.png" />', 'Payment', '/admin/index.php?controller=extension&type=payment', null, null],
	    ['<img src="/admin/images/calculate.png" />', 'Calculate', '/admin/index.php?controller=extension&type=calculate', null, null]
    ],
	_cmSplit,	
	  [null, 'Customers', null, null, null, 	  
	    ['<img src="/admin/images/customer.png" />', 'Customer', '/admin/modulos/usuarios_sistema/index.php', null, null],
	    ['<img src="/admin/images/order.png" />', 'Order', '/admin/index.php?controller=order', null, null],
	    ['<img src="/admin/images/mail.png" />', 'Mail', '/admin/index.php?controller=mail', null, null],
		['<img src="/admin/images/newsletter.png" />', 'Newsletter', '/admin/index.php?controller=newsletter', null, null],
    ],	
	_cmSplit,	
	  [null, 'Reports', null, null, null, 	  
	    ['<img src="/admin/images/report.png" />', 'People Online', '/admin/index.php?controller=report_online', null, null],
	    ['<img src="/admin/images/report.png" />', 'Sales', '/admin/index.php?controller=report_sale', null, null],
	    ['<img src="/admin/images/report.png" />', 'Products Viewed', '/admin/index.php?controller=report_viewed', null, null],
	    ['<img src="/admin/images/report.png" />', 'Products Purchased', '/admin/index.php?controller=report_purchased', null, null],
    ]			
  ]
//-->
</script>
<script language="JavaScript"><!--
  cmDraw('myMenuID', myMenu, 'hbr', cmThemeDefault, 'ThemeDefault');
//--></script>

  <!-- InstanceBeginEditable name="menu" -->
  <div class="task">
  <div class="enabled" onmouseover="className='hover'" onmouseout="className='enabled'" onclick="location='/admin/modulos/secciones/index.php?action=listar_secciones'"><img src="../../images/list_enabled.png" alt="Listar" />Listar</div>
    <div class="enabled" onmouseover="className='hover'" onmouseout="className='enabled'" onclick="location='/admin/modulos/secciones/index.php?action=insertar_secciones'"><img src="../../images/insert_enabled.png" alt="Insertar" />Insertar</div>
    <div class="disabled"><img src="../../images/update_disabled.png" alt="Editar" />Editar</div>

  <div class="disabled"><img src="../../images/delete_disabled.png" alt="Borrar" />Borrar</div>
  <div class="disabled"><img src="../../images/save_disabled.png" alt="Guardar" />Guardar</div>
  <div class="disabled"><img src="../../images/cancel_disabled.png" alt="Cancelar" />Cancelar</div>
</div>
<div class="heading">{categoria_modulo}</div>
<div class="description">You can edit your product categories here.</div>
<div id="list">
  <!-- InstanceEndEditable -->
  <!-- InstanceBeginEditable name="contenido" -->

	 
	 
<form  action="/admin/modulos/secciones/index.php?action=editar_secciones_ok" method="post" enctype="multipart/form-data">
  <input type="hidden" id="id_seccion" name="id_seccion" value="{id_seccion}" />
 <input type="hidden" id="cant_imagenes" name="cant_imagenes" value="{cant_imagenes}" />
  <div class="tab" id="tab">
    <div class="tabs"><a>General</a><a>Datos</a></div>
    <div class="pages">
      <div class="page">

        <div id="tabmini">
          <div class="tabs">
		  <!-- BEGIN block_idiomas -->
             <a>{idioma}</a>
		  <!-- END block_idiomas --> 
          </div>
          <div class="pages">
             <!-- BEGIN block_idiomas1 -->
			 <div class="page">
              <div class="minipad">
                <table>
				  <tr>
                    <td width="185"><span class="required">*</span> Titulo de la Seción:</td>
                    <td><input id="titulo_{lenguaje1}" name="titulo_{lenguaje1}" value="{titulo}" />
                      </td>
                  </tr>
                  <tr>
                    <td valign="top"><span class="required">*</span>Contenido:</td>
                    <td><textarea name="contenido_{lenguaje1}" id="contenido_{lenguaje1}">{contenido}</textarea>
                      </td>
                  </tr>
				  <tr>
                    <td valign="top">Title:</td>
                    <td><input name="title_{lenguaje1}" id="title_{lenguaje1}" value="{title}" size="50"/>
                      </td>
                  </tr>
				  <tr>
                    <td valign="top"><span class="required">*</span>Description:</td>
                    <td width="200"><textarea name="description_{lenguaje1}" id="description_{lenguaje1}" rows="3" cols="70">{description}</textarea>
                      </td>
                  </tr>
				  <tr>
                    <td valign="top"><span class="required">*</span>keywords:</td>
                    <td><input name="keywords_{lenguaje1}" id="keywords_{lenguaje1}" value="{keywords}" size="90"  />
                      </td>
                  </tr>
                </table>
              </div>
            </div>
			<!-- END block_idiomas1 -->

            </div>
        </div>
      </div>
      <div class="page">
        <div class="pad">
          <table>
		  	<tr>
                  <td valign="top"><span class="required">*</span>Sección Padre:</td>
                    <td>
						<select name="nombre_padre" id="nombre_padre" onChange="pedir_subsecciones(this.value);">
							<option value="0">Sin Sección Padre</option>
							<!-- BEGIN block_padre -->
							<option value="{id_padre}" {selected}>{nombre_padre}</option>
							<!-- END block_padre -->
						</select>
                      </td>
             </tr>
			 <tr>
                  <td valign="top"><span class="required">*</span>Subsección Padre:</td>
                    <td id="subsecciones">
						<select id="nombre_subseccion" name="nombre_subseccion">
							<option id="0" name="0" value="0" >Sin Subsección Padre</option>
							<!-- BEGIN block_spadre -->
							<option value="{id_sub_padre}" {selected_sub}>{nombre_sub_padre}</option>
							<!-- END block_spadre -->
						</select>
                      </td>
             </tr>
			<tr>
                 <td valign="top"><span class="required">*</span>Tipo Sección</td>
                    <td>
						<select name="nombre_tiposeccion" id="nombre_tiposeccion">
							<option value="0">Sin Tipo Seccion</option>
							<!-- BEGIN block_tiposeccion -->
							<option value="{id}" {selected_tiposeccion}>{nombre_tiposeccion}</option>
							<!-- END block_tiposeccion -->
						</select>
                      </td>
             </tr>  
			<tr>
              <td width="185">Publicado:</td>
              <td><input id="publicado" name="publicado" type="checkbox" size="1" {publicado} /></td>
            </tr>
			<tr>
              <td width="185">Pertenece Menu Lateral:</td>
              <td><input id="menu_lateral" name="menu_lateral" type="checkbox" size="1" {menu_lateral} /></td>
            </tr>
			<tr>
              <td width="185">Ordenar:</td>
              <td><input id="orden" name="orden" value="{orden}" size="1" /></td>
            </tr>
			<tr>
                 <td valign="top">Código Video:</td>
                 <td><input name="video" id="video" value="{video}" size="50"  /></td>
            </tr>

			<tr>
				  	<td colspan="2">
						<strong>Imágenes de la Sección</strong>
					</td>
			</tr>
			<!-- BEGIN block_imagenes -->
			<tr>
				<td colspan="2">
					<div id="my{nro}Div" style=" width:100%;  padding:7px 0px; clear:both">
							<input type="hidden" id="id_imagen_{nro}" name="id_imagen_{nro}" value="{id_imagen}" />
						  <table cellpadding="0" cellspacing="1" border="0" style="border:1px solid #dcdcdc;padding:10px;">
								<tr>
									<td valign="top" width="180">Nombre:</td>
									<td><input name="nombre_imagen_{nro}" id="nombre_imagen_{nro}" value="{nombre_imagen}" type="text" size="50"  /></td>
								</tr>
								<tr>
									<td valign="top">Path:</td>
									<td>
										<input name="path_imagen_{nro}" id="path_imagen_{nro}" value="{path_imagen}" type="file" size="69"  />
										<input name="path_imagen_existente_{nro}" id="path_imagen_existente_{nro}" value="{path_imagen}" type="hidden" />
									</td>
								</tr>
								<tr>
									<td valign="top">Imagen principio?</td>
									<td><input name="principio_imagen_{nro}" id="principio_imagen_{nro}"  type="checkbox"  {checked_principio_imagen} /></td>
								</tr>
								<tr>
									<td valign="top">Publicado</td>
									<td><input name="publicado_imagen_{nro}" id="publicado_imagen_{nro}"  type="checkbox"  {checked_publicado_imagen} /></td>
								</tr>
								<tr><td><img src="{path_imagen}" alt="{nombre_imagen}" width="85" height="85"/></td></tr>
							</table>
						  </div>
				</td>
			</tr>
				  
				   <!-- END block_imagenes -->
				  <tr><td colspan="2"><a href="#" title="Eliminar última" onClick="var c=document.getElementById('cant_imagenes').value; eliminarFoto(c); return false;" style="text-decoration:underline;color:#FF0000">Eliminar última</a> - <a href="#" title="Añadir más Imágenes" onClick="addFoto(document.getElementById('cant_imagenes').value); return false;" style="text-decoration:underline;color:#FF0000">Añadir más Imágenes</a></td></tr>
          </table>
        </div>
      </div>
    </div>
  </div>
<div style="text-align:center">
	<input type="submit" value="Aceptar" onclick="actualizar();" />
	<input type="reset" value="Cancelar" onclick="history.back(-1);" />
</div>	
  <script type="text/javascript"><!--
  tabview_initialize('tab');
  //--></script>
  <script type="text/javascript"><!--
  tabview_initialize('tabmini');
  //--></script>
  <script type="text/javascript"><!--
  
  function actualizar(){
	  <!-- BEGIN block_idiomas3 -->
	  	  var oFCKeditor_{lenguaje3} = FCKeditorAPI.GetInstance('contenido_{lenguaje3}') ;
		  var Mensaje=oFCKeditor_{lenguaje3}.GetXHTML(); 
		  document.getElementById('contenido_{lenguaje3}').value = Mensaje;
	  <!-- END block_idiomas3 -->
	  }
	  
  var sBasePath           = document.location.href.replace(/admin\/modulos\/secciones\/index\.php.*/, 'admin/js/fckeditor/');
    <!-- BEGIN block_idiomas2 -->
	var oFCKeditor          = new FCKeditor('contenido_{lenguaje2}');
	  oFCKeditor.BasePath = sBasePath;
	  oFCKeditor.Value	  = document.getElementById('contenido_{lenguaje2}').value;
	  oFCKeditor.Width    = '600';
	  oFCKeditor.Height   = '300';
	  oFCKeditor.ReplaceTextarea();
   <!-- END block_idiomas2 -->  	
  	  
  //--></script>
</form>
</div>
  <!-- InstanceEndEditable -->
  
</body>
<!-- InstanceEnd --></html>
